import * as ajax from "../../common/ajax";
import axios from 'axios';

export const list = () => ajax.pureGet("/student/course/list");

export const deleteItem = studentCourseId =>
  ajax.pureDelete("/student/course/" + studentCourseId);

// 前端发送的请求
axios.get(`/student/course/${courseId}`)  // 确保 courseId 传入正确
